<template>
  <div class="ele-body">
    <key-search @send-key="getKey" />
    <el-card>
      <vuln-table :url="url" :params="key" />
    </el-card>
  </div>
</template>

<script>
import keySearch from '../../components/keySearch'
import vulnTable from './table'
export default {
  name: 'VulnList',
  components: {
    keySearch,
    vulnTable
  },
  data() {
    return {
      url: '/vuln/vuln/list/',
      key: ''
    }
  },
  methods: {
    getKey(value) {
      this.key = value
    },
    reloadTable() {
      this.$refs.assetTable.reload()
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
